package com.llb666.shop.items.domain.repository;

import com.llb666.common.core.utils.page.PagedGridResult;
import com.llb666.shop.items.api.dto.OrderItemsCommentDto;
import com.llb666.shop.items.domain.entity.ItemsComments;
import com.llb666.shop.items.domain.entity.bo.MyCommentBo;

import java.util.List;

/**
 * @author llb666
 */
public interface ItemsCommentsRepository {

    void saveComments(String userId, List<OrderItemsCommentDto> commentList);

    /**
     * 查询我的评论.
     *
     * @param userId 用户id
     * @return 我的评论列表
     */
    PagedGridResult<MyCommentBo> queryMyComments(String userId, Integer page, Integer pageSize);

}
